package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 日报填写信息
 *
 * @author wang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@ApiModel("日报填写信息")
public class JournalContentEntity extends BaseEntity {

    /**
     * 物理主键
     */
    @ApiModelProperty(value = "物理主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 模板数据编码
     */
    @ApiModelProperty(value = "模板数据编码")
    private String modelDataCode;

    /**
     * 日志内容编码
     */
    @ApiModelProperty(value = "日志内容编码")
    private String code;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名")
    private String userName;

    /**
     * 日志问题答案
     */
    @ApiModelProperty(value = "日志问题答案")
    private String textMessage;

}
